package com.east.service.invoice;

import com.east.bean.Invoice;
import com.east.utils.Pagenation;
import com.github.pagehelper.Page;

public interface InvoiceService {
	/**
	 * 分页查询
	 * @param pagenation
	 * @param key
	 * @return
	 */
	Page<Invoice> findByPage(Pagenation pagenation ,String key,Integer cid);
	
	/**
	 * 详情
	 * @param Invoice
	 * @return
	 */
	Invoice  findByOne(Invoice invoice);
	/**
	 * 添加
	 * @param Invoice
	 * @return
	 */
	boolean saveInvoice(Invoice invoice);
	/**
	 * 修改
	 * @param Invoice
	 * @return
	 */
	boolean updateInvoice(Invoice invoice);
	/**
	 * 删除
	 * @param Invoice
	 * @return
	 */
	boolean delInvoice(Invoice invoice);
}
